<template>
  <div class="box" style="background-color=aquamarine;">
    <van-nav-bar
      :title="title"
      left-text=""
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
      fixed
      placeholder
    >
      <template #right>
        <!-- <van-icon name="search" size="18" /> -->
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  props: {
    title: {}
  },
  methods: {
    onClickLeft () {
      this.$router.push('/cart')
    },
    onClickRight () {
      this.$router.push('/search')
    }
  }
}
</script>

<style lang="scss" scoped>
.box{
  margin: 0;
  color: aliceblue;
}
/deep/.van-nav-bar {
  background-color:#ecf4f8;
}
/deep/.van-nav-bar__content{
    height: 55px;
}
/deep/.van-nav-bar__title{
    font-size: 20px;
    color: rgb(48, 35, 48);
}
</style>
